package com.zq.designpaterns.create.builder;

/**
 * ================================================
 * 作    者：程志强
 * 邮    箱：cheng.zhiqiang@cesgroup.com.cn
 * 版    本：1.0.0
 * 创建日期：2021/01/11  16:39
 * 修改日期：
 * 描    述：负责创建 Meal 对象
 * 修订历史：
 * ================================================
 */
public class MealBuilder {
    // 创建蔬菜汉堡
    public Meal prepareVegMeal() {
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    // 创建肉类汉堡
    public Meal prepareNonVegMeal() {
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }
}
